package lesson2.com.games.enums;

import lesson2.com.games.*;

public class PlayingCard {
    
    
   
    private Suit suit;
    private int denomination;
    
    public PlayingCard(Suit suit, int denomination){
        if(suit==null){
            throw new IllegalArgumentException("null not a valid Suit value.  Use HEARTS, SPADES, ETC");
            // or, use some default
            // like if(suit==null) suit=Suit.SPADES;
        }
        this.suit=suit;
        this.denomination=denomination;
    }

    public Suit getSuit() {
        return suit;
    }

    public int getDenomination() {
        return denomination;
    }
    
    public String getSuitText(){
        return suit.getSuitText();
    }
}
